<?php
/**
 * Created by PhpStorm.
 * User: SATA
 * Date: 2017/9/23
 * Time: 16:46
 */

namespace app\home\validate;
use think\Validate;


class Appointment extends Validate
{
    protected $rule = [
        ['student_id', 'require|exist:HomeMember,id', '用户名必须|用户不存在'],
        ['teacher_id', 'require|exist:Document,id', '教师必须|教师不存在'],
        ['appoint_time', 'require', '订单日期必须'],
    ];
}